﻿using SqlSugar;

namespace Forum.Model.Entity
{
    /// <summary>
    /// 推荐文章
    /// </summary>
    [SugarTable("FeaturedPost")]
    public class FeaturedPost
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        public string PostId { get; set; }

        [Navigate(NavigateType.OneToOne, nameof(PostId))]
        public Post Post { get; set; }
    }
}